package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作记录表对象 p_record
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "p_record")
@Data
public class PRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 柜子编号 */
    @Excel(name = "柜子编号")
    private String sid;

    /** 设备端的ID */
    @Excel(name = "设备端的ID")
    private String devId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userNo;

    /** 动态密码 */
    @Excel(name = "动态密码")
    private String dyPass;

    /** 现存照片 */
    @Excel(name = "现存照片")
    private String realPic;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date regTime;

    private String userName; // 添加用户昵称属性

}
